/**
 * Created with IntelliJ IDEA.
 * User: ajhin
 * Date: 3/22/14
 * Time: 7:33 PM
 * To change this template use File | Settings | File Templates.
 */
package com.societyGames.codeAlong.state.codeExercise.model.testCase
{
public class FailState extends TestCaseControllerState implements IResetable, ISelectable
{
  public function FailState(testCaseController:TestCaseController)
  {
    super(testCaseController);
  }

  override public function enter():void
  {
    _testCaseController._testCasesFailedEventObject.dispatchEvent();
  }

  public function reset():void
  {
    _testCaseController._stateMachine.gotoState(_testCaseController._fullyResetState);
  }

  public function select(index:int):void
  {
    _testCaseController._selectCase(index);
  }
}
}
